package top.xxyu.app.pojo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Role implements Serializable {
	private String rid;

	private String rname;

	private static final long serialVersionUID = 1L;

	private Set<Role> users = new HashSet<>();
	
	private Set<Module> modules = new HashSet<>();

	public Set<Role> getUsers() {
		return users;
	}

	public void setUsers(Set<Role> users) {
		this.users = users;
	}

	public Set<Module> getModules() {
		return modules;
	}

	public void setModules(Set<Module> modules) {
		this.modules = modules;
	}

	public String getRid() {
		return rid;
	}

	public void setRid(String rid) {
		this.rid = rid == null ? null : rid.trim();
	}

	public String getRname() {
		return rname;
	}

	public void setRname(String rname) {
		this.rname = rname == null ? null : rname.trim();
	}
}